import request from '@/utils/request';

export const activateVip = (code) => {
  return request({
    url: '/work/userVip/active',
    method: 'post',
    data: {
      code,
    },
  });
};

export const getActivateHistory = () => {
  return request({
    url: '/work/userVip/query',
    method: 'post',
    data: {},
  });
};

export const getUserVipInfo = () => {
  return request({
    url: '/work/userVip/isVip',
    method: 'post',
  });
};
